package com.cloudkinto.service.replacement;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.entity.ReplacementDo;
import com.cloudkinto.service.replacement.impl.vo.ReplacementAddReq;
import com.cloudkinto.service.replacement.impl.vo.ReplacementUpdateReq;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @author fanp
 * @version v1.0.0
 * @Description :
 * @Create on : 2021/2/20 14:43
 **/
public interface ReplacementService extends IService<ReplacementDo> {
    SingleResult addInit(Long outputId);

    SingleResult add(Long currentUserId, ReplacementAddReq replacementAddReq,Long companyId);

    SingleResult updateR(Long currentUserId, ReplacementUpdateReq replacementUpdateReq);

    SingleResult delete(Long currentUserId, Long id);

    PageResult getListPage(Map<String, String> map);


    void exportExcel(List<Long> ids, HttpServletResponse response);

    void confirmPhone(Long id, Long userId);
}
